<%--
    Document   : popuptemplate
    Created on : Jun 4, 2012, 2:47:19 PM
    Author     : ems
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/datetimepicker.js"></script>
        <link rel="stylesheet" type="text/css" href="../css/kapiform.css"/>
        <%--<script type="text/javascript" language="javascript" src="../scripts/jQuery/jquery-1.7.2.min.js"></script> --%>
    </head>
    <script type="text/javascript">
        var open_cur = 0;
        if (typeof jQuery == 'undefined') {
            // window.location.href="accessdenied.jsp";
        } 
        $j = jQuery.noConflict();      
        $j(document).ready(function(){
            yhight = ($j('.popup').height()-90)+"px" ;
            $j('.main_content').css('height',yhight );
            $j('.popup-content').css('height',yhight );
        });
        
    </script>
    <style type="text/css">
        .divbutton{
            display:none;
        }
    </style>
    <f:view>
        <h:form>

            <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>

            <div class="popup" style="height:150px; width:350px">
                <div class="popup-header">
                    <div class="title">Chuyển nhân viên sang khách hàng</div>
                </div>
                <div class="popup-content">
                    <div class="main_content" style="padding:20px 7px">

                        <div style="float: left;">
                            <label style="float: left;">Người đảm nhiệm :</label>
                            <h:selectOneMenu style="float:left;width:206px;"  value="#{customerExpand.loginEmp}" styleClass="cbx_editEmp" id="ckb_098">
                                <f:selectItems value="#{customerExpand.lstEmpByIDConvert}" />
                            <a4j:support event="onchange"   actionListener="#{customerExpand.reloadlistConvert}" > 

                            </a4j:support>
                        </h:selectOneMenu>
                            </div>
                        <h:inputHidden id="id" value="#{deleteController.primarykey}" />
                        <h:inputHidden id="id2" value="#{deleteController.foreignkey}" />


                    </div>
                </div>
                <div class="popup-footer">

                    <div class="buttonsave" onclick="parent.jQuery.fancybox.close(); " <h:outputText rendered="#{deleteController.table == 'DELETECUS'}" value="style='display:none'" /> ><span>
                            <h:outputText value="NO" />

                        </span></div>


                    <div class="divbutton" style="display:<h:outputText rendered="#{deleteController.table == 'N100Delete'}" value="block" />">
                        <a4j:commandButton  action="#{deleteController.updateEmptoCus}" styleClass="buttonsave" value="YES">

                        </a4j:commandButton>
                    </div>


                </div>
            </div>

        </h:form>
    </f:view>
</html>
